package com.forum.Entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.criteria.CriteriaBuilder;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    private String commentId;
    private String postId;
    private String userId;
    private String content;
    private String parentId;
    private String replytouserId;
    private int likes;
    private String createUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String token;



    private String userName;
    private String screenName;
    private String sex;
    private String description;
    private String address;
    private String avatar;
    private Integer status;
    private Integer roleId;

    List<Comment> replies;




}
